package com.zxx.casserver.modules.oplog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 系统操作日志表-数据库使用
 * </p>
 *
 * @author zhoukai
 * @since 2020-08-03
 */
@TableName("cas_op_log")
public class OpLogDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 操作人UID
     */
    private Long uid;

    /**
     * 操作模块
     */
    private String modules;

    /**
     * 执行动作
     */
    private String action;

    /**
     * 操作信息
     */
    private String msg;

    /**
     * 操作IP信息
     */
    private String opIp;

    /**
     * 操作时间
     */
    private Long opTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }


    public String getModules() {
        return modules;
    }

    public void setModules(String modules) {
        this.modules = modules;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getOpIp() {
        return opIp;
    }

    public void setOpIp(String opIp) {
        this.opIp = opIp;
    }

    public Long getOpTime() {
        return opTime;
    }

    public void setOpTime(Long opTime) {
        this.opTime = opTime;
    }

    @Override
    public String toString() {
        return "CasOpLog{" +
                "id=" + id +
                ", uid=" + uid +
                ", modules=" + modules +
                ", action=" + action +
                ", msg=" + msg +
                ", opIp=" + opIp +
                ", opTime=" + opTime +
                "}";
    }
}
